---
category: Number
created: '2020-05-05'
title: Calculate the division of arguments
updated: '2021-10-13'
---

**JavaScript version**

```js division.js
const division = (...args) => args.reduce((a, b) => a / b);
```

**TypeScript version**

```ts division.ts
const division = (...args: number): number => args.reduce((a, b) => a / b);
```

**Examples**

```js examples.js
division(1, 2, 3, 4); // 0.04166666666666666
```
